package user

import (
	"crmeb-common/global"
	"time"
)

// UserToken
type UserToken struct {
	global.BaseModel
	Uid int32 `json:"uid" gorm:"column=uid;comment:用户 id"`

	Token string `json:"token" gorm:"column=token;comment:token"`

	Type int32 `json:"type" gorm:"column=type;comment:类型，1 公众号， 2 小程序, 3 unionid, 5AppIos,6AppAndroid,7ios"`

	ExpiresTime time.Time `json:"expiresTime" gorm:"column=expires_time;comment:到期时间"`

	LoginIp string `json:"loginIp" gorm:"column=login_ip;comment:登录ip"`
}
